import Stage from '../stage/index'

// const shopIndex = () =>
//   import(/* webpackChunkName: "shopIndex" */ '@/components/home/shopIndex')
const overview = () =>
  import(/* webpackChunkName: "overview" */ '@/components/home/shopIndex')
const backStage = () =>
  import(/* webpackChunkName: "backStage" */ '@/components/home/backStage')

const main = [{
  path: '/overview',
  component: overview,
  name: 'overview',
  meta: {
    title: '首页'
  }
},
  // {
  //   path: '/shopIndex',
  //   component: overview,
  //   name: 'overview',
  //   meta: {
  //     title: '总览'
  //   }
  // },
{
  path: '/backStage',
  component: backStage,
  name: 'backStage',
  meta: {
    title: '我的后台'
  },
  redirect: {
    name: 'userCenter'
  },
  children: [...Stage]
}
]

export default main
